package com.lry.compressor;


import com.lry.compressor.util.BZip2Util;
import com.lry.spi.LoadLevel;

@LoadLevel(name = "bzip2")
public class BZip2Compressor implements Compressor {

    @Override
    public byte[] compress(byte[] bytes) {
        return BZip2Util.compress(bytes);
    }

    @Override
    public byte[] decompress(byte[] bytes) {
        return BZip2Util.decompress(bytes);
    }

}
